package com.cnc.fd;

/**
 * 任务工具类
 * @author Administrator
 *
 */
public class TaskUtil {
    
    /**
     * 是否是只能使用HTTP上传的客户
     * @param entername
     * @return
     */
    public static boolean isHttpOnly(String entername){
        String httpOnlyCustomers = SysConfig.getValue(SysConfig.CUSTOMER_HTTP_ONLY, "");
        if(httpOnlyCustomers.indexOf(entername) >= 0){
            return true;
        }
        return false;        
    }
    
    /**
     * 是否是只能使用Wsftp上传的客户
     * @param entername
     * @return
     */
    public static boolean isWsftpOnly(String entername){
        String wsftpOnlyCustomers = SysConfig.getValue(SysConfig.CUSTOMER_WSFTP_ONLY, "");
        if(wsftpOnlyCustomers.indexOf(entername) >= 0){
            return true;
        }
        return false;        
    }

}
